<h1>Listing nas</h1>

<table class="table table-striped">
  <thead>
    <tr>
      <th>Nasname</th>
      <th>Shortname</th>
      <th>Type</th>
      <th>Ports</th>
      <th>Secret</th>
      <th>Server</th>
      <th>Community</th>
      <th>Description</th>
      <th>Actions</th>
    </tr>
  </thead>

  <tbody>
    <% @nas.each do |nas| %>
      <tr>
        <td><%=link_to nas.nasname, nas %></td>
        <td><%= nas.shortname %></td>
        <td><%= nas.types %></td>
        <td><%= nas.ports %></td>
        <td><%= nas.secret %></td>
        <td><%= nas.server %></td>
        <td><%= nas.community %></td>
        <td><%= nas.description %></td>
        <td><%= link_to btn_icon(:edit), edit_nas_path(nas) %>
        <%= link_to btn_icon(:trash), nas, method: :delete, data: { confirm: 'Are you sure?' } %></td>
      </tr>
    <% end %>
  </tbody>
</table>

<br>

<%= link_to 'New Nas', new_nas_path, class: "btn btn-primary btn-mini" %>
